export const imgErr = {
  inserted: function(dom, binding) {
    dom.onerror = function() {
      dom.src = binding.value
    }
  },
  componentUpdated(dom, binding) {
    if (!dom.src) {
      dom.src = binding.value
    }
  }
}

